package uk.ac.strath.cis.metric_spaces.distance;

/**
 * An implmentation of distance that uses the Chebychev algorithm
 * @author Robert
 *
 */
public class ChebychevDistance extends PointDistance {

    @Override
    protected double algorithm(double sum, double n1, double n2) {
        return Math.max(Math.abs(n1 - n2), sum);
    }

}
